﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.MarketingCoupon.MarketingCoupon
{
    /// <summary>
    /// 优惠券
    /// </summary>
    [Table("MarketingCoupon")]
    public class MarketingCouponEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 营销优惠券Id
        /// </summary>
        public long MarketingCouponId { get; set; }
        /// <summary>
        /// 优惠券类型Id
        /// </summary>
        public long MarketingCouponTypeId { get; set; }
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public string CouponType { get; set; }
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }
        /// <summary>
        /// 优惠券摘要
        /// </summary>
        public string CouponSummark { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 优惠券数量
        /// </summary>
        public int CouponCount { get; set; }
        /// <summary>
        /// 代理商
        /// </summary>
        public long? AgentRecordId { get; set; }
        /// <summary>
        /// 是否通用
        /// </summary>
        public bool IsCommon { get; set; }
        /// <summary>
        /// 优惠券票号
        /// </summary>
        public int CouponNumber { get; set; }
        /// <summary>
        /// 已启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreateAdminId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateAdminName { get; set; }
        /// <summary>
        /// 是否已领取
        /// </summary>
        public bool IsReceive { get; set; }
        /// <summary>
        /// 领取时间
        /// </summary>
        public DateTime? ReceivedTime { get; set; }
        /// <summary>
        /// 是否已使用
        /// </summary>
        public bool IsUse { get; set; }
        /// <summary>
        /// 使用时间
        /// </summary>
        public DateTime? UsingTime { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long? UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 是否通用运输业务
        /// </summary>
        public bool IsCommonBusiness { get; set; }
        /// <summary>
        /// 车辆运输业务配置Id
        /// </summary>
        public long? VehicleTransportBusinessConfigId { get; set; }
        /// <summary>
        /// 运输业务
        /// </summary>
        public string TransportBusiness { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
